#if !defined(AFX_SHOWSTATIC_H__7E705B48_351B_4C44_8925_2601AE1BD313__INCLUDED_)
#define AFX_SHOWSTATIC_H__7E705B48_351B_4C44_8925_2601AE1BD313__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ShowStatic.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CShowStatic window
//#include "XShowPlayTreeCtrl.h"

class CShowStatic : public CStatic
{
// Construction
public:
	CShowStatic();

// Attributes
public:
	int		m_nShowID;
	LONG	m_lPlayHandle;
	bool	m_bRecording;

	int		m_nServerID;
	LONG	m_lUserID;
	bool	m_bNotice;
	bool	m_bInEachSee;
	time_t  m_lChangeFileNameTime;
//	HTREEITEM m_hPlayingItem;
//	TItemData *m_ItemData;
	bool	m_bPlaySound;
	int		m_nNetDelay;
	VIDEO_INFO	m_VideoInfo;
	bool m_bShowRecordInfo;

	int m_nProtocol;
	int m_nProtocolType;
	
//	CXShowPlayTreeCtrl	*m_pShowPlayTreeCtrl;
// Operations
public:
	CMenu		      m_PopUpMenu;              // the menu
	CMenu*		      m_pPopUpMenu;              // pointer to the menu
	void OnShowDisconnect();
	afx_msg void OnShowSound();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CShowStatic)
	//}}AFX_VIRTUAL

// Implementation
public:
	void SetBGBitmap(UINT ID);
	void StopClientRecord();
	void StartClientRecord();
	void GetVideoParams();
	void ReStartPlay();
	void NetDelay(int nID);
	void ShowRecordInfo();
	void ClearRecordInfo();
	void SetCurShow();
	int StopPlay();
	int StartPlay(int nServerID);
//	int StartPlayEachSee(int nServerID);
//	LONG StartLogin(int nServerID);
	virtual ~CShowStatic();
	// Generated message map functions
protected:
	CBitmap m_BGBm;
	//{{AFX_MSG(CShowStatic)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnPaint();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SHOWSTATIC_H__7E705B48_351B_4C44_8925_2601AE1BD313__INCLUDED_)
